<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::LinearizedMaps类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_linearized_maps.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1_linearized_maps-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::LinearizedMaps类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Stores a set of linearized maps.  
 <a href="classpcl_1_1_linearized_maps.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="linemod_8h_source.html">linemod.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a59f096b5ab6fe54cf74e761faafc5395"><td class="memItemLeft" align="right" valign="top"><a id="a59f096b5ab6fe54cf74e761faafc5395"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#a59f096b5ab6fe54cf74e761faafc5395">LinearizedMaps</a> ()</td></tr>
<tr class="memdesc:a59f096b5ab6fe54cf74e761faafc5395"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a59f096b5ab6fe54cf74e761faafc5395"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae53f5f20a4303ba7cb751775f05fdcd7"><td class="memItemLeft" align="right" valign="top"><a id="ae53f5f20a4303ba7cb751775f05fdcd7"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#ae53f5f20a4303ba7cb751775f05fdcd7">~LinearizedMaps</a> ()</td></tr>
<tr class="memdesc:ae53f5f20a4303ba7cb751775f05fdcd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:ae53f5f20a4303ba7cb751775f05fdcd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e9898cebf0c24d566a438d9f7cb14f1"><td class="memItemLeft" align="right" valign="top"><a id="a1e9898cebf0c24d566a438d9f7cb14f1"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#a1e9898cebf0c24d566a438d9f7cb14f1">getWidth</a> () const</td></tr>
<tr class="memdesc:a1e9898cebf0c24d566a438d9f7cb14f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the width of the linearized map. <br /></td></tr>
<tr class="separator:a1e9898cebf0c24d566a438d9f7cb14f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a882a1e73fc0fc84a8bec1ecc2564a320"><td class="memItemLeft" align="right" valign="top"><a id="a882a1e73fc0fc84a8bec1ecc2564a320"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#a882a1e73fc0fc84a8bec1ecc2564a320">getHeight</a> () const</td></tr>
<tr class="memdesc:a882a1e73fc0fc84a8bec1ecc2564a320"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the height of the linearized map. <br /></td></tr>
<tr class="separator:a882a1e73fc0fc84a8bec1ecc2564a320"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1342823690f1fdd89e118aa24e1abbf"><td class="memItemLeft" align="right" valign="top"><a id="ab1342823690f1fdd89e118aa24e1abbf"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#ab1342823690f1fdd89e118aa24e1abbf">getStepSize</a> () const</td></tr>
<tr class="memdesc:ab1342823690f1fdd89e118aa24e1abbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the step-size used to construct the linearized map. <br /></td></tr>
<tr class="separator:ab1342823690f1fdd89e118aa24e1abbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad26217b4ca8937b288baa177caaba2a7"><td class="memItemLeft" align="right" valign="top"><a id="ad26217b4ca8937b288baa177caaba2a7"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#ad26217b4ca8937b288baa177caaba2a7">getMapMemorySize</a> () const</td></tr>
<tr class="memdesc:ad26217b4ca8937b288baa177caaba2a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of the memory map. <br /></td></tr>
<tr class="separator:ad26217b4ca8937b288baa177caaba2a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c2bbf65283a174d35d273dc501daa71"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#a4c2bbf65283a174d35d273dc501daa71">initialize</a> (const size_t width, const size_t height, const size_t step_size)</td></tr>
<tr class="memdesc:a4c2bbf65283a174d35d273dc501daa71"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the linearized map.  <a href="classpcl_1_1_linearized_maps.html#a4c2bbf65283a174d35d273dc501daa71">更多...</a><br /></td></tr>
<tr class="separator:a4c2bbf65283a174d35d273dc501daa71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa44b8e4c0e56ed60aeb49f3fbd3ebcc1"><td class="memItemLeft" align="right" valign="top"><a id="aa44b8e4c0e56ed60aeb49f3fbd3ebcc1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#aa44b8e4c0e56ed60aeb49f3fbd3ebcc1">releaseAll</a> ()</td></tr>
<tr class="memdesc:aa44b8e4c0e56ed60aeb49f3fbd3ebcc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Releases the internal memory. <br /></td></tr>
<tr class="separator:aa44b8e4c0e56ed60aeb49f3fbd3ebcc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae26d50b1de413a6c0cdf79bb10defd36"><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#ae26d50b1de413a6c0cdf79bb10defd36">operator()</a> (const size_t col_index, const size_t row_index)</td></tr>
<tr class="memdesc:ae26d50b1de413a6c0cdf79bb10defd36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operator to access elements of the linearized map by column and row index.  <a href="classpcl_1_1_linearized_maps.html#ae26d50b1de413a6c0cdf79bb10defd36">更多...</a><br /></td></tr>
<tr class="separator:ae26d50b1de413a6c0cdf79bb10defd36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb50e7f7bac88d1198ba33532ba81867"><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#acb50e7f7bac88d1198ba33532ba81867">getOffsetMap</a> (const size_t col_index, const size_t row_index)</td></tr>
<tr class="memdesc:acb50e7f7bac88d1198ba33532ba81867"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a linearized map starting at the specified position.  <a href="classpcl_1_1_linearized_maps.html#acb50e7f7bac88d1198ba33532ba81867">更多...</a><br /></td></tr>
<tr class="separator:acb50e7f7bac88d1198ba33532ba81867"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:aced4cf78026cbc4c44ab572057e2bca0"><td class="memItemLeft" align="right" valign="top"><a id="aced4cf78026cbc4c44ab572057e2bca0"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#aced4cf78026cbc4c44ab572057e2bca0">width_</a></td></tr>
<tr class="memdesc:aced4cf78026cbc4c44ab572057e2bca0"><td class="mdescLeft">&#160;</td><td class="mdescRight">the original width of the data represented by the map. <br /></td></tr>
<tr class="separator:aced4cf78026cbc4c44ab572057e2bca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22791fea03c156efef6ed2a5d0d6fe09"><td class="memItemLeft" align="right" valign="top"><a id="a22791fea03c156efef6ed2a5d0d6fe09"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#a22791fea03c156efef6ed2a5d0d6fe09">height_</a></td></tr>
<tr class="memdesc:a22791fea03c156efef6ed2a5d0d6fe09"><td class="mdescLeft">&#160;</td><td class="mdescRight">the original height of the data represented by the map. <br /></td></tr>
<tr class="separator:a22791fea03c156efef6ed2a5d0d6fe09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3c16215b3c87bdeaeadabf6bfd93226"><td class="memItemLeft" align="right" valign="top"><a id="ad3c16215b3c87bdeaeadabf6bfd93226"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#ad3c16215b3c87bdeaeadabf6bfd93226">mem_width_</a></td></tr>
<tr class="memdesc:ad3c16215b3c87bdeaeadabf6bfd93226"><td class="mdescLeft">&#160;</td><td class="mdescRight">the actual width of the linearized map. <br /></td></tr>
<tr class="separator:ad3c16215b3c87bdeaeadabf6bfd93226"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17a2d40d723f7c93d14c4b4ce7409a23"><td class="memItemLeft" align="right" valign="top"><a id="a17a2d40d723f7c93d14c4b4ce7409a23"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#a17a2d40d723f7c93d14c4b4ce7409a23">mem_height_</a></td></tr>
<tr class="memdesc:a17a2d40d723f7c93d14c4b4ce7409a23"><td class="mdescLeft">&#160;</td><td class="mdescRight">the actual height of the linearized map. <br /></td></tr>
<tr class="separator:a17a2d40d723f7c93d14c4b4ce7409a23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89470b8e7ccbf8487995074cd4225eeb"><td class="memItemLeft" align="right" valign="top"><a id="a89470b8e7ccbf8487995074cd4225eeb"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#a89470b8e7ccbf8487995074cd4225eeb">step_size_</a></td></tr>
<tr class="memdesc:a89470b8e7ccbf8487995074cd4225eeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">the step-size used for sampling the original data. <br /></td></tr>
<tr class="separator:a89470b8e7ccbf8487995074cd4225eeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22515dda9db2f52eff445ab3073be8f1"><td class="memItemLeft" align="right" valign="top"><a id="a22515dda9db2f52eff445ab3073be8f1"></a>
std::vector&lt; unsigned char * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_linearized_maps.html#a22515dda9db2f52eff445ab3073be8f1">maps_</a></td></tr>
<tr class="memdesc:a22515dda9db2f52eff445ab3073be8f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">a vector containing all the linearized maps. <br /></td></tr>
<tr class="separator:a22515dda9db2f52eff445ab3073be8f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Stores a set of linearized maps. </p>
<dl class="section author"><dt>作者</dt><dd>Stefan Holzer </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="acb50e7f7bac88d1198ba33532ba81867"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb50e7f7bac88d1198ba33532ba81867">&#9670;&nbsp;</a></span>getOffsetMap()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char* pcl::LinearizedMaps::getOffsetMap </td>
          <td>(</td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>col_index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>row_index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a linearized map starting at the specified position. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">col_index</td><td>the column index at which the returned map starts. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">row_index</td><td>the row index at which the returned map starts. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;      {</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">size_t</span> map_col = col_index % <a class="code" href="classpcl_1_1_linearized_maps.html#a89470b8e7ccbf8487995074cd4225eeb">step_size_</a>;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">size_t</span> map_row = row_index % <a class="code" href="classpcl_1_1_linearized_maps.html#a89470b8e7ccbf8487995074cd4225eeb">step_size_</a>;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160; </div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">size_t</span> map_mem_col_index = col_index / <a class="code" href="classpcl_1_1_linearized_maps.html#a89470b8e7ccbf8487995074cd4225eeb">step_size_</a>;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">size_t</span> map_mem_row_index = row_index / <a class="code" href="classpcl_1_1_linearized_maps.html#a89470b8e7ccbf8487995074cd4225eeb">step_size_</a>;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160; </div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1_linearized_maps.html#a22515dda9db2f52eff445ab3073be8f1">maps_</a>[map_row*<a class="code" href="classpcl_1_1_linearized_maps.html#a89470b8e7ccbf8487995074cd4225eeb">step_size_</a> + map_col] + map_mem_row_index*<a class="code" href="classpcl_1_1_linearized_maps.html#ad3c16215b3c87bdeaeadabf6bfd93226">mem_width_</a> + map_mem_col_index);</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;      }</div>
<div class="ttc" id="aclasspcl_1_1_linearized_maps_html_a22515dda9db2f52eff445ab3073be8f1"><div class="ttname"><a href="classpcl_1_1_linearized_maps.html#a22515dda9db2f52eff445ab3073be8f1">pcl::LinearizedMaps::maps_</a></div><div class="ttdeci">std::vector&lt; unsigned char * &gt; maps_</div><div class="ttdoc">a vector containing all the linearized maps.</div><div class="ttdef"><b>Definition:</b> linemod.h:308</div></div>
<div class="ttc" id="aclasspcl_1_1_linearized_maps_html_a89470b8e7ccbf8487995074cd4225eeb"><div class="ttname"><a href="classpcl_1_1_linearized_maps.html#a89470b8e7ccbf8487995074cd4225eeb">pcl::LinearizedMaps::step_size_</a></div><div class="ttdeci">size_t step_size_</div><div class="ttdoc">the step-size used for sampling the original data.</div><div class="ttdef"><b>Definition:</b> linemod.h:306</div></div>
<div class="ttc" id="aclasspcl_1_1_linearized_maps_html_ad3c16215b3c87bdeaeadabf6bfd93226"><div class="ttname"><a href="classpcl_1_1_linearized_maps.html#ad3c16215b3c87bdeaeadabf6bfd93226">pcl::LinearizedMaps::mem_width_</a></div><div class="ttdeci">size_t mem_width_</div><div class="ttdoc">the actual width of the linearized map.</div><div class="ttdef"><b>Definition:</b> linemod.h:302</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a4c2bbf65283a174d35d273dc501daa71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c2bbf65283a174d35d273dc501daa71">&#9670;&nbsp;</a></span>initialize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::LinearizedMaps::initialize </td>
          <td>(</td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>step_size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initializes the linearized map. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>the width of the source map. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>the height of the source map. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">step_size</td><td>the step-size used to sample the source map. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;      {</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        <a class="code" href="classpcl_1_1_linearized_maps.html#a22515dda9db2f52eff445ab3073be8f1">maps_</a>.resize(step_size*step_size, NULL);</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        <a class="code" href="classpcl_1_1_linearized_maps.html#aced4cf78026cbc4c44ab572057e2bca0">width_</a> = width;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        <a class="code" href="classpcl_1_1_linearized_maps.html#a22791fea03c156efef6ed2a5d0d6fe09">height_</a> = height;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;        <a class="code" href="classpcl_1_1_linearized_maps.html#ad3c16215b3c87bdeaeadabf6bfd93226">mem_width_</a> = width / step_size;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;        <a class="code" href="classpcl_1_1_linearized_maps.html#a17a2d40d723f7c93d14c4b4ce7409a23">mem_height_</a> = height / step_size;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        <a class="code" href="classpcl_1_1_linearized_maps.html#a89470b8e7ccbf8487995074cd4225eeb">step_size_</a> = step_size;</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">size_t</span> mapsSize = <a class="code" href="classpcl_1_1_linearized_maps.html#ad3c16215b3c87bdeaeadabf6bfd93226">mem_width_</a> * <a class="code" href="classpcl_1_1_linearized_maps.html#a17a2d40d723f7c93d14c4b4ce7409a23">mem_height_</a>;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160; </div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> map_index = 0; map_index &lt; <a class="code" href="classpcl_1_1_linearized_maps.html#a22515dda9db2f52eff445ab3073be8f1">maps_</a>.size (); ++map_index)</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        {</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;          <span class="comment">//maps_[map_index] = new unsigned char[2*mapsSize];</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;          <a class="code" href="classpcl_1_1_linearized_maps.html#a22515dda9db2f52eff445ab3073be8f1">maps_</a>[map_index] = <span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*<span class="keyword">&gt;</span> (aligned_malloc (2*mapsSize));</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;          memset (<a class="code" href="classpcl_1_1_linearized_maps.html#a22515dda9db2f52eff445ab3073be8f1">maps_</a>[map_index], 0, 2*mapsSize);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        }</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;      }</div>
<div class="ttc" id="aclasspcl_1_1_linearized_maps_html_a17a2d40d723f7c93d14c4b4ce7409a23"><div class="ttname"><a href="classpcl_1_1_linearized_maps.html#a17a2d40d723f7c93d14c4b4ce7409a23">pcl::LinearizedMaps::mem_height_</a></div><div class="ttdeci">size_t mem_height_</div><div class="ttdoc">the actual height of the linearized map.</div><div class="ttdef"><b>Definition:</b> linemod.h:304</div></div>
<div class="ttc" id="aclasspcl_1_1_linearized_maps_html_a22791fea03c156efef6ed2a5d0d6fe09"><div class="ttname"><a href="classpcl_1_1_linearized_maps.html#a22791fea03c156efef6ed2a5d0d6fe09">pcl::LinearizedMaps::height_</a></div><div class="ttdeci">size_t height_</div><div class="ttdoc">the original height of the data represented by the map.</div><div class="ttdef"><b>Definition:</b> linemod.h:300</div></div>
<div class="ttc" id="aclasspcl_1_1_linearized_maps_html_aced4cf78026cbc4c44ab572057e2bca0"><div class="ttname"><a href="classpcl_1_1_linearized_maps.html#aced4cf78026cbc4c44ab572057e2bca0">pcl::LinearizedMaps::width_</a></div><div class="ttdeci">size_t width_</div><div class="ttdoc">the original width of the data represented by the map.</div><div class="ttdef"><b>Definition:</b> linemod.h:298</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ae26d50b1de413a6c0cdf79bb10defd36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae26d50b1de413a6c0cdf79bb10defd36">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char* pcl::LinearizedMaps::operator() </td>
          <td>(</td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>col_index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>row_index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Operator to access elements of the linearized map by column and row index. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">col_index</td><td>the column index. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">row_index</td><td>the row index. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;      {</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1_linearized_maps.html#a22515dda9db2f52eff445ab3073be8f1">maps_</a>[row_index*<a class="code" href="classpcl_1_1_linearized_maps.html#a89470b8e7ccbf8487995074cd4225eeb">step_size_</a> + col_index]);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;      }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/<a class="el" href="linemod_8h_source.html">linemod.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_linearized_maps.html">LinearizedMaps</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
